﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StudentLib
{
    public class Student
        //class should represent something. Class student is a template that I can use to build each of the students. 
        //From a structural standpoint, everybody has a first name and a last name. 
        //Everybody has a visitor pass. So those are three things that everybody has. 
        //The values may be different but we all have the fields. 
    {

        //fields 
        string firstName = ""; //private by default;

        public string FirstName
        {
            get { return firstName; }
            set { firstName = value; }
        }


        string lastName = "";

        public string LastName
        {
            get { return lastName; }
            set { lastName = value; }
        }
        string streetAddress = "";

        public string StreetAddress
        {
            get { return streetAddress; }
            set { streetAddress = value; }
        }
        string city = "";

        public string City
        {
            get { return city; }
            set { city = value; }
        }
        string state = "";

        public string State
        {
            get { return state; }
            set { state = value; }
        }
        string zip = "";

        public string Zip
        {
            get { return zip; }
            set { zip = value; }
        }

        public string MailingLabel()
            //inside any class we have access specifiers. private, public, or protected 
            //The code that can access anything in private must be inside it 
            //For public, it can be anywhere. 
            //For protected, we are public inside a sub class but private everywhere else 
        {
            string label = firstName + " " + lastName + "\r\n";
            label += streetAddress + "\r\n";
            label += city + " " + state + " " + zip + "\r\n";

            return label;
        } 

    }
}
